package com.zr.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zr.dao.BaseDao;
import com.zr.model.Point;
import com.zr.service.UpdatePointService;
@Service("updatep")
public class UpdatePServiceImpl implements UpdatePointService{
	
	@Resource
	private BaseDao baseDao;
	
	@Override
	public void updatep(int pid, String pname, int uid, String pclass) {
		Point p = (Point) baseDao.get(Point.class, Integer.valueOf(pid));
		p.setPname(pname);
		p.setUid(uid);
		p.setPclass(pclass);
		baseDao.save(p);
	}

}
